package com.boang;

import java.util.ArrayList;
import java.util.Collections;
import java.util.concurrent.ConcurrentHashMap;

/*
  @author: 13813
  @date: 2024/11/29 16:18
*/
public class CollectionsDemo {
    public static void main(String[] args) {
        ArrayList<String> arrayList = new ArrayList<>();
        arrayList.add("b");
        arrayList.add("a");
        arrayList.add("c");
        arrayList.add("e");
        System.out.println(arrayList); //[b, a, c, e]
        Collections.sort(arrayList);
        System.out.println(arrayList);

        ConcurrentHashMap<String, String> map = new ConcurrentHashMap<>();
        map.put("", "");
    }
}
